/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package filters;

import core.Filter;
import java.awt.image.BufferedImage;

/**
 *
 * @author fuanka
 */
public class Composer extends Filter{

    private boolean debug = true;
    private BufferedImage comosedImage;

    private int count=0;

    private BufferedImage redBand;
    private BufferedImage greenBand;
    private BufferedImage blueBand;

    public Composer() {
        this.hasData = false;
    }

    @Override
    public Object pull() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    

    public void push(Object input) {
        try {
            redBand = (BufferedImage) input;
            this.hasData = true;
        } catch (ClassCastException cce) {
            System.out.println("ERROR: unsoported input for filter of " + this.getClass().toString());
            if (debug) {
                cce.printStackTrace();
            }
        }
    }

}
